package com.shaoshaohuo.app.ui;

import android.os.Bundle;

import com.shaoshaohuo.app.R;

public class CouponActivity extends BaseActivity {
//    private TopbarView mTopbarView;
//    /**
//     * tablayout
//     */
//    private List<String> couopn_tab_data;
//    private TabLayout coupon_tabLayout;
//    private ViewPager coupon_viewPager;
//    private CouponFragment coupon_fragment;
//    private List<Fragment> coupon_fragment_data;
//    private HomeTabLayoutAdapter coupon_tab_adapter;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_conpon);
//        initView();
//        getTabData();
//        bindAdapter();
    }

//    private void bindAdapter() {
//        coupon_tabLayout.setTabMode(TabLayout.MODE_FIXED);
//        coupon_viewPager.setAdapter(coupon_tab_adapter);
//        coupon_tabLayout.setupWithViewPager(coupon_viewPager);
//    }
//
//    private void getTabData() {
//        couopn_tab_data.add("未使用");
//        couopn_tab_data.add("已使用");
//        couopn_tab_data.add("已过期");
//        Bundle bundle;
//        for (int i = 0; i < couopn_tab_data.size(); i++) {
//            coupon_fragment = new CouponFragment();
//            coupon_fragment_data.add(coupon_fragment);
//            bundle = new Bundle();
//            bundle.putString("1", i + "");
//            coupon_fragment.setArguments(bundle);
//            coupon_tabLayout.addTab(coupon_tabLayout.newTab().setText(couopn_tab_data.get(i)));
//        }
//    }
//
//    private void initView() {
//        coupon_tabLayout = (TabLayout) findViewById(R.id.coupon_tabLayout);
//        coupon_viewPager = (ViewPager) findViewById(R.id.coupon_viewPager);
//        couopn_tab_data = new ArrayList<>();
//        coupon_fragment_data = new ArrayList<>();
//        coupon_tab_adapter = new HomeTabLayoutAdapter(getSupportFragmentManager(), this, couopn_tab_data, coupon_fragment_data);
//    }


}
